package com.sheng.center.service;


import java.util.List;

import com.sheng.center.dao.UserDao;
import com.sheng.center.entity.User;

public class UserServiceImpl implements UserService{
	
    private UserDao userDao;
	
	public boolean register(User user) {
		return userDao.register(user);
	}
	public User login(User user) {
		return userDao.login(user);
	}
	@Override
	public void edit(User user) {
		userDao.edit(user);
	}
	
	@Override
	public List<User> findAllList(User user) {
		return userDao.findAllList(user);
	}
	@Override
	public User findById(User user) {
		return userDao.findById(user);
	}
	
	public UserDao getUserDao() {
		return userDao;
	}
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
	
}
